package com.erp.programmer.dto;

import com.erp.programmer.annotation.ValidateEntity;

public class RoleDto {
    /**
     * 角色ID
     */
    private String id;

    /**
     * 角色名称
     */
    @ValidateEntity(required=true,requiredMaxLength=true,requiredMinLength=true,maxLength=8,minLength=1,errorRequiredMsg="角色名称不能为空！",errorMaxLengthMsg="角色名称长度不能大于8！",errorMinLengthMsg="角色名称长度不能小于1！")
    private String name;

    /**
     * 角色描述
     */
    @ValidateEntity(required=true,requiredMaxLength=true,requiredMinLength=true,maxLength=128,minLength=1,errorRequiredMsg="角色描述不能为空！",errorMaxLengthMsg="角色描述长度不能大于128！",errorMinLengthMsg="角色描述长度不能小于1！")
    private String description;
    /**
     * 查询内容
     */
    private String searchContent;
    /**
     * 查询类型
     */
    private String searchType;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getSearchContent() {
        return searchContent;
    }

    public void setSearchContent(String searchContent) {
        this.searchContent = searchContent;
    }

    public String getSearchType() {
        return searchType;
    }

    public void setSearchType(String searchType) {
        this.searchType = searchType;
    }

    @Override
    public String toString() {
        return "Role{" +
                "id=" + id +
                ", name=" + name +
                ", description=" + description +
                "}";
    }
}
